package com.wiloon.java8x.basic.clazz;

/**
 * Created by roy.wang on 2017/4/19;
 */
public class Clazz {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        System.out.println(Clazz.class);
        System.out.println(Class.forName("com.wiloon.java8x.basic.clazz.Clazz"));
        System.out.println(new Clazz().getClass());
        //
        String[] arr = new String[]{"a", "b"};
        System.out.println(arr.getClass());

        int[] intArr = new int[]{1, 2,};
        System.out.println(intArr.getClass());

        Integer[] integerArr = new Integer[]{1, 2,};
        System.out.println(integerArr.getClass());

        System.out.println(Clazz.class.newInstance());
        System.out.println(Clazz.class.getComponentType());
        System.out.println(intArr.getClass().getComponentType());
        System.out.println(integerArr.getClass().getComponentType());

        System.out.println(Clazz.class.getSuperclass());

    }
}
